import request from './request'

export const fetchNotifications = async (params = {}) => {
  return request.get('/notifications', { params })
}

export const markNotificationAsRead = async (notificationId) => {
  return request.put(`/notifications/${notificationId}/read`)
}

export const markAllNotificationsAsRead = async () => {
  return request.put('/notifications/read-all')
}